import request from '@/utils/request'

// 查询每日操作列表
export function listOpera(query) {
  return request({
    url: '/shortplay/opera/list',
    method: 'get',
    params: query
  })
}

// 查询每日操作详细
export function getOpera(id) {
  return request({
    url: '/shortplay/opera/' + id,
    method: 'get'
  })
}

// 新增每日操作
export function addOpera(data) {
  return request({
    url: '/shortplay/opera',
    method: 'post',
    data: data
  })
}

// 修改每日操作
export function updateOpera(data) {
  return request({
    url: '/shortplay/opera',
    method: 'put',
    data: data
  })
}

// 删除每日操作
export function delOpera(id) {
  return request({
    url: '/shortplay/opera/' + id,
    method: 'delete'
  })

}

// 获取频道列表
export function getChannelList() {
  return request({
    url: '/youtobe/channel/allList',
    method: 'get',
    params: {
      sourc: 'MY'
    }
  })
}
